package com.situ.allaia.dao;

import com.situ.allaia.model.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.Collection;
import java.util.List;

@Mapper
public interface CategoryDao {
    List<Category> findAll();

    Category findById(Integer id);


    int save(Category category);

    int update(Category category);

    int deleteByIds(Collection<Integer> ids);
}
